import request from '@/utils/request'

// 查询礼物赠送记录列表
export function listGiftRecord(query) {
  return request({
    url: '/marry/giftRecord/list',
    method: 'get',
    params: query
  })
}

// 查询礼物赠送记录列表(礼物排行榜)
export function listAllGiftRecord(query) {
  return request({
    url: '/marry/giftRecord/listAll',
    method: 'get',
    params: query
  })
}

// 查询礼物赠送记录详细
export function getGiftRecord(id) {
  return request({
    url: '/marry/giftRecord/' + id,
    method: 'get'
  })
}

// 新增礼物赠送记录
export function addGiftRecord(data) {
  return request({
    url: '/marry/giftRecord',
    method: 'post',
    data: data
  })
}

// 修改礼物赠送记录
export function updateGiftRecord(data) {
  return request({
    url: '/marry/giftRecord',
    method: 'put',
    data: data
  })
}

// 删除礼物赠送记录
export function delGiftRecord(id) {
  return request({
    url: '/marry/giftRecord/' + id,
    method: 'delete'
  })
}

// 导出礼物赠送记录
export function exportGiftRecord(query) {
  return request({
    url: '/marry/giftRecord/export',
    method: 'get',
    params: query
  })
}
